package dataConnectionPackage;

import mysqlConnecionMappersPackage.DistanceBetweenLimanMapper;
import mysqlConnecionMappersPackage.GemiMapper;
import mysqlConnecionMappersPackage.GuzergahMapper;
import mysqlConnecionMappersPackage.KaptanMapper;
import mysqlConnecionMappersPackage.LimanCalisaniMapper;
import mysqlConnecionMappersPackage.LimanMapper;
import mysqlConnecionMappersPackage.MusteriMapper;
import mysqlConnecionMappersPackage.SatisGorevlisiMapper;
import mysqlConnecionMappersPackage.SatisMapper;
import mysqlConnecionMappersPackage.SeferMapper;
import mysqlConnecionMappersPackage.SystemAdminMapper;
import mysqlConnecionMappersPackage.UlkeMapper;
import dataTypesPackage.DistanceBetweenLiman;
import dataTypesPackage.Gemi;
import dataTypesPackage.Guzergah;
import dataTypesPackage.Kaptan;
import dataTypesPackage.Liman;
import dataTypesPackage.LimanCalisani;
import dataTypesPackage.Musteri;
import dataTypesPackage.Satis;
import dataTypesPackage.SatisGorevlisi;
import dataTypesPackage.Sefer;
import dataTypesPackage.SystemAdmin;
import dataTypesPackage.Ulke;


public class MapperFactory {

	public static IMapper getMapper(Object objectClass) {
		// Returns asssociated Mapper
		if (objectClass == DistanceBetweenLiman.class)
			return new DistanceBetweenLimanMapper();
		if (objectClass == Gemi.class)
			return new GemiMapper();
		if (objectClass == Guzergah.class)
			return new GuzergahMapper();
		if (objectClass == Kaptan.class)
			return new KaptanMapper();
		if (objectClass == Liman.class)
			return new LimanMapper();
		if (objectClass == LimanCalisani.class)
			return new LimanCalisaniMapper();
		if (objectClass == Musteri.class)
			return new MusteriMapper();
		if (objectClass == Satis.class)
			return new SatisMapper();
		if (objectClass == SatisGorevlisi.class)
			return new SatisGorevlisiMapper();
		if (objectClass == Sefer.class)
			return new SeferMapper();
		if (objectClass == SystemAdmin.class)
			return new SystemAdminMapper();
		if (objectClass == Ulke.class)
			return new UlkeMapper();
		return null;												//this should never happen	
	}

	/*
	public Mapper getMapper(Object objectClass){
		
	}
	*/
}
